package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 招标书
 */
@Data
@TableName("t_bidd")
public class BiddEntity implements Serializable {

    @TableId(value = "pk_biddId", type = IdType.AUTO)
    private long biddId;

    @TableField("b_biddRef")
    private String inviteId;//招标书编号

    @TableField("b_title")
    private String title;//标书标题

    @TableField("b_applyRef")
    private String applyRef;//促销申请


    @TableField("b_info")
    private String info;//标书信息内容

    @TableField("b_dateTime")
    private LocalDateTime dateTime ;//发送日期

    @TableField("b_status")
    private int status = 0;//状态 0，未发布招标，1，已发布招标，2，完成招标

    @TableField(exist = false)
    private List<BiddSupplierEntity> biddSupplierEntityList;//标书对应的所有供应商

    @TableField(exist = false)
    private List<TenderEntity> tenderEntityList;//招标书对应的所有投标书

    @TableField(exist = false)
    private ProcureApplyEntity procureApplyEntity; //招标书对应的采购申请

    @TableField(exist = false)
    private ConfirmOrderEntity confirmOrderEntity; //招标书对应的中标确认订单


}
